<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddFieldToScenicDivinationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('scenic_divinations', function (Blueprint $table) {
            $table->string('tag')->nullable()->comment('人物标签 ');
            $table->string('revelation')->nullable()->comment('行动启示');
            $table->string('words')->nullable()->comment('吉祥语');
            $table->string('moment')->nullable()->comment('时机');
            $table->string('direction')->nullable()->comment('方位');
            $table->string('armoury')->nullable()->comment('行业锦囊');
            $table->string('dressing')->nullable()->comment('穿搭开运');
            $table->text('precautions')->nullable()->comment('注意事项');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('scenic_divinations', function (Blueprint $table) {
            $table->dropColumn(['tag','revelation','words','moment','direction','armoury','dressing','precautions']);
        });
    }
}
